"""
模块初始化文件
导出各个模块的主要功能
"""

from .constants import (
    current_dir,
    UPLOAD_DIR,
    CUT_DIR,
    DOWNLOAD_DIR,
    DB_PATH,
    TASKS,
    CUT_TASKS,
    BATCH_CUT_TASKS
)

from .db import (
    init_db,
    insert_task,
    update_task_status,
    get_task,
    insert_log,
    insert_result,
    update_task_filename,
    update_result_filename,
    get_task_files,
    get_tasks,
    get_logs,
    get_log
)

from .cleanup import (
    cleanup_temp_files,
    cleanup_batch_cut_files
)

from .download import (
    download_task,
    parse_video_info
)

from .settings import (
    verify_cookie,
    check_cookie_status,
    save_cookie,
    get_cookie,
    set_test_invalid_cookie,
    verify_and_save_cookie
)

from .cut import (
    cut_video,
    cut_task,
    get_cut_progress,
    get_cut_file,
    rename_cut_file,
    get_cut_preview
)

from .batch_cut import (
    batch_upload_video,
    batch_cut_video,
    get_batch_cut_status,
    get_batch_cut_file,
    batch_download_files
)

__all__ = [
    # 常量
    'current_dir',
    'UPLOAD_DIR',
    'CUT_DIR',
    'DOWNLOAD_DIR',
    'DB_PATH',
    'TASKS',
    'CUT_TASKS',
    'BATCH_CUT_TASKS',
    
    # 数据库函数
    'init_db',
    'insert_task',
    'update_task_status',
    'get_task',
    'insert_log',
    'insert_result',
    'update_task_filename',
    'update_result_filename',
    'get_task_files',
    'get_tasks',
    'get_logs',
    'get_log',
    
    # 清理函数
    'cleanup_temp_files',
    'cleanup_batch_cut_files',
    
    # 下载函数
    'download_task',
    'parse_video_info',
    
    # 设置函数
    'verify_cookie',
    'check_cookie_status',
    'save_cookie',
    'get_cookie',
    'set_test_invalid_cookie',
    'verify_and_save_cookie',
    
    # 裁剪函数
    'cut_video',
    'cut_task',
    'get_cut_progress',
    'get_cut_file',
    'rename_cut_file',
    'get_cut_preview',
    
    # 批量裁剪函数
    'batch_upload_video',
    'batch_cut_video',
    'get_batch_cut_status',
    'get_batch_cut_file',
    'batch_download_files'
] 